#ifndef ACTIONFILEPARSER_H
#define ACTIONFILEPARSER_H

#include "robotaction.h"

/**
 * @brief Parses TiLAR Action files.
 *
 * This parser is responsible for reading the action files and creating
 * RobotAction objects from the files.  It has a single static method,
 * parse().  It needs to know the robot that the action is being created for.
*/
class ActionFileParser
{
public:
    ActionFileParser();

    static RobotAction* parse(QString filename, Robot* robot);
    static int getDuration(QString filename);

};

#endif // ACTIONFILEPARSER_H
